<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:component="http://java.sun.com/jsf/composite/component">

    <ui:composition template="/resources/include/template.xhtml">

        <ui:define name="title">

            <h:outputText value="#{bundle.Bambole} - #{bundle.Item}"/>

        </ui:define>

        <ui:define name="body">

            <h:form>

                <ui:include src="/resources/include/menu.xhtml"/> 

                <p:panel header="#{orderItemController.currentOrderHeader.formattedDocument} - 
                         #{orderItemController.currentOrderHeader.organization.nameWithDisabledFormatting} : 
                         #{bundle.Item} - #{bundle.View}">           

                    <component:toolbar

                        refreshButtonDisabled="true"          
                        saveButtonDisabled="true"
                        searchButtonDisabled="true"

                        previousButtonDisabled="#{!orderItemController.hasPreviousRecord}"
                        nextButtonDisabled="#{!orderItemController.hasNextRecord}"

                        returnButtonAction="#{orderItemController.prepareList}"
                        previousButtonAction="#{orderItemController.previousItem}"
                        nextButtonAction="#{orderItemController.nextItem}"
                        createButtonAction="#{orderItemController.prepareCreate}"
                        editButtonAction="#{orderItemController.prepareEdit}"
                        deleteButtonAction="#{orderItemController.destroy}"

                        additionalInfoButtonRendered="true"

                        /> 

                    <component:order_item

                        descriptionDisabled="true"
                        productDisabled="true"
                        qtyDisabled="true"
                        estimatedDeliveryDateDisabled="true"
                        priceDisabled="true"
                        discountDisabled="true"

                        />          

                </p:panel>

            </h:form>

        </ui:define>

    </ui:composition>

</html>
